<table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
    <tbody>
    <tr style="display:none;">
        <td valign="top"><a href="http://www.secret-doll.com" target="_blank"><img src="javascript:;" style="margin-bottom:10px;" border="0"></a></td>
    </tr>

    <if condition="$order['user_id'] gt 0">
        <tr>
            <td valign="top">
                <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Hello, {$g_address.consignee} {$g_address.lastname}   </h1>
                <p style="font-size:12px; line-height:16px; margin:0;">
                    Thank you for your order from Secret-Doll.com.
                    It takes approximately 4 to 7 days to manufacture the product.
                    Once your package ships we will send an email with a link to track your order.
                    You can check the status of your order by <a href="http://www.secret-doll.com/Home/user/login.html" style="color:#1E7EC8;" target="_blank">logging into your account</a>.
                    If you have any questions about your order please contact us at <a href="mailto:service@secret-doll.com " style="color:#1E7EC8;" target="_blank">service@secret-doll.com </a> or call us at <span class="nobr"></span> Monday - Friday, Monday to Saturday: 9:00am – 23:00pm,  Sunday: 10am – 3:00pm.
                </p>
                <p style="font-size:12px; line-height:16px; margin:0;">Your order confirmation is below. Thank you again for your business.</p>
            </td>
        </tr>

        <else/>


        <tr>
            <td valign="top">
                <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Hello, {$g_address.consignee} {$g_address.lastname}   </h1>
                <p style="font-size:12px; line-height:16px; margin:0;">
                    Thank you for your order from Secret-Doll.com.
                    It takes approximately 4 to 7 days to manufacture the product.
                    Once your package ships we will send an email with a link to track your order.
                    You can check the status of your order by <a href="http://www.secret-doll.com/Home/Index/orderdetail/code/{$order.order_sn}.html" style="color:#1E7EC8;" target="_blank">Click to view your order information</a>.
                    If you have any questions about your order please contact us at <a href="mailto:service@secret-doll.com " style="color:#1E7EC8;" target="_blank">service@secret-doll.com </a> or call us at <span class="nobr"></span> Monday - Friday, Monday to Saturday: 9:00am – 23:00pm,  Sunday: 10am – 3:00pm.
                </p>
                <p style="font-size:12px; line-height:16px; margin:0;">Your order confirmation is below. Thank you again for your business.</p>
            </td>
        </tr>
    </if>

    <tr>
        <td>
            <h2 style="font-size:18px; font-weight:normal; margin:0;">Your Order #{$order.order_sn} </span> <small>(placed on {$order.add_time|date='d/m/y H:i:s',###})</small></h2>
        </td>
    </tr>
    <tr>
        <td>
            <table cellspacing="0" cellpadding="0" border="0" width="650">
                <thead>
                <tr>
                    <th align="left" width="325" bgcolor="#CC0066" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em; color:#fff;">Billing Information:</th>
                    <th width="10"></th>
                    <th align="left" width="325" bgcolor="#CC0066" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;color:#fff;">Shipping Information:</span></th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
                        {$g_address.address}<br>
                        {$g_address.state}<br>
                        {$g_address.city}<br>
                        {$g_address.country}<br>
                        T: {$g_address.consignee}

                    </td>
                    <td>&nbsp;</td>
                    <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
                        {$f_address.address}<br>
                        {$f_address.state}<br>
                        {$f_address.city}<br>
                        {$f_address.country}<br>
                        T: {$f_address.consignee}
                    </td>
                </tr>
                </tbody>
            </table>
            <br>


            <br>

            <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
                <thead>
                <tr>
                    <th align="left" bgcolor="#CC0066" style="font-size:13px; padding:3px 9px;color:#ffffff;">Item</th>
                    <th align="left" bgcolor="#CC0066" style="font-size:13px; padding:3px 9px;color:#ffffff;">Sku</th>
                    <th align="center" bgcolor="#CC0066" style="font-size:13px; padding:3px 9px;color:#ffffff;">Qty</th>
                    <th align="right" bgcolor="#CC0066" style="font-size:13px; padding:3px 9px;color:#ffffff;">Subtotal</th>
                </tr>
                </thead>

                <tbody bgcolor="#F6F6F6">
                <foreach name="goods_list"  item="v">

                    <tr>
                        <td align="left" valign="top" style="font-size:11px; padding:3px 9px; border-bottom:1px dotted #CCCCCC;"><strong style="font-size:11px;">{$v.goods_name}</strong> </td>
                        <td align="left" valign="top" style="font-size:11px; padding:3px 9px; border-bottom:1px dotted #CCCCCC;"> {$v.sku}</td>
                        <td align="center" valign="top" style="font-size:11px; padding:3px 9px; border-bottom:1px dotted #CCCCCC;">{$v.goods_num}</td>
                        <td align="right" valign="top" style="font-size:11px; padding:3px 9px; border-bottom:1px dotted #CCCCCC;"><span class="price">{$money_str}{$v[goods_num]*$v[member_goods_price]|get_hl_price_1}</span> </td>
                    </tr>
                </foreach>


                </tbody>

                <tbody>
                <tr class="subtotal">
                    <td colspan="3" align="right" style="padding:3px 9px">Subtotal </td>
                    <td align="right" style="padding:3px 9px"><span class="price">{$money_str}{$order.goods_price}</span></td>
                </tr>
                <tr>
                    <td colspan="3" align="right" style="padding:3px 9px">Tax</td>
                    <td align="right" style="padding:3px 9px"><span class="price">{$money_str}{$order.shipping_price}</span></td>
                </tr>
                <tr>
                    <td colspan="3" align="right" style="padding:3px 9px">Sales Promotion</td>
                    <td align="right" style="padding:3px 9px"><span class="price">-{$money_str}{$order.order_prom_amount}</span></td>
                </tr>
                <tr>
                    <td colspan="3" align="right" style="padding:3px 9px">Coupon</td>
                    <td align="right" style="padding:3px 9px"><span class="price">-{$money_str}{$order.coupon_price}</span></td>
                </tr>
                <tr class="grand_total">
                    <td colspan="3" align="right" style="padding:3px 9px"><strong>Grand Total</strong></td>
                    <td align="right" style="padding:3px 9px"><strong><span class="price">{$money_str}{$order.order_amount}</span></strong></td>
                </tr>
                </tbody>
            </table>
            <p style="font-size:12px; margin:0 0 10px 0"></p>
        </td>
    </tr>
    <tr>
        <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>Secret-Doll.com</strong></p></center></td>
    </tr>
    </tbody>
</table>